package com.xhwl.centiotdata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.dto.cent.iotdata.repair.RepairActionDTO;
import com.xhwl.common.pojo.cent.iot.RepairScopeConfig;

import java.util.List;

/**
 * Copyright (C),1998-2022, 兴海物联
 * FileName: RepairDetailLogService
 * Author: XuChang
 * Date: 2022/5/27 11:02
 * Description: 可修复范围配置
 * History:
 */
public interface RepairScopeConfigService extends IService<RepairScopeConfig> {

    List<RepairScopeConfig> getConfig(Integer projectId);

    /**
     * 判断是否在已配置的可修复范围内
     * @param repairActionDTO
     * @return
     */
    boolean isLegalScope(RepairActionDTO repairActionDTO);
}
